# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-tweepy
_pkgname=tweepy
pkgver=3.8.0
pkgrel=2
pkgdesc='Python library for accessing the entire Twitter API.'
url='https://pypi.org/project/tweepy/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-requests' 'python2-requests-oauthlib' 'python2-six'
         'python2-pysocks')
makedepends=('python2-setuptools' 'python2-pip' 'python2-requests'
             'python2-requests-oauthlib' 'python2-six' 'python-pysocks')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('23245492ce3857f64fa4b5794863545dcb3a6de2efc9e7f8a13e61143243f5a316c50c6d1be6660a7b11040db169034e7595daa58cfd71d46e0e994ddc0c39ab')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

